// Includes
#include <PA9.h>       // Include for PA_Lib
#include "efs_lib.h"

// Function: main()
int main(int argc, char ** argv)
{
	PA_Init();    // Initializes PA_Lib
	PA_InitVBL(); // Initializes a standard VBL
	
    PA_InitText(1, 0);
    PA_InitText(0, 0);
	
	    if(fatInitDefault()) 
		{
			PA_OutputText(1, 0, 0, "FAT init ok");
			PA_OutputText(1, 0, 1, "Please wait, searching NDS...");
			
			if(EFS_Init()) 
			{	
				PA_OutputText(1, 0, 1, "EFS init ok                   ");
				PA_OutputText(1, 0, 2, "found NDS path:\n%s", efs_path);
				
				EFS_DIR* dir;
				s8 type, i;
				EFS_FILE* file;
				u8* buffer;
			}
		}

	// Infinite loop to keep the program running
	while (1)
	{
		PA_WaitForVBL();
	}
	
	return 0;
} // End of main()
